package com.hnichr.ump.api.controller;


import com.hnichr.ump.common.onetime.sortseat.service.SeatManService;
import com.mxpioframework.common.vo.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@Tag(name = "SeatController", description = "排排座")
@RestController
@RequestMapping("/api/seat/v1")
public class SeatController {
    @Autowired
    private SeatManService seatManService;

    @GetMapping("desk")
    @Operation(summary = "排排座", description = "排排座", method = "GET")
    public Result<List<Map<String,String>>> seat() {
        return Result.OK(seatManService.sortSeat());
    }
}
